﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace B.S.Production.Domain.Entities
{
    /// <summary>
    /// 所需物料表
    /// </summary>
    public class MaterialsRequired
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int RequiredId {  get; set; }
        /// <summary>
        /// 生产订单id
        /// </summary>
        public int ProdunctionId {  get; set; }
        /// <summary>
        /// 派工产品id
        /// </summary>
        public int DispatchId { get; set; }
        /// <summary>
        /// 客户订单id
        /// </summary>
        public int CoId { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 物料编号
        /// </summary>
        public long ProductNumber { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 产品比例
        /// </summary>
        public string Productatio { get; set; }
        /// <summary>
        /// 现有存库
        /// </summary>
        public string ExistingInventory { get; set; }
        /// <summary>
        /// 耗损率（%）
        /// </summary>
        public string WastageRate { get; set; }
        /// <summary>
        /// 所需数量
        /// </summary>
        public string QuantityRequired { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 已领数量
        /// </summary>
        public string QuantityClaimed { get; set; }
        /// <summary>
        /// 到货日期
        /// </summary>
        public DateTime? ArrivalDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 逻辑删除true-false
        /// </summary>
        public bool IsDelete { get; set; } = false;
    }
}
